import 'package:flutter/material.dart';
import 'package:untitled5/discover_cell.dart';

class DiscoverPage extends StatefulWidget {
  const DiscoverPage({super.key});

  @override
  State<DiscoverPage> createState() => _DiscoverPageState();
}

class _DiscoverPageState extends State<DiscoverPage> {
  Color _themColor = Color.fromRGBO(237, 237, 237, 1.0);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Color.fromRGBO(237, 237, 237, 1.0),
        elevation: 0,
        title: Text('发现'),
      ),
      body: Container(
        height: 8000,
        color: _themColor,
        child: ListView(
          children: [
            discoverCell(
              title: '朋友圈',
              imageName: 'images/pyq.png',
              subTitle: '',
              subImageName: 'images/touxiang.png',
              zsImageName: '',
            ),
            SizedBox(
              height: 10,
            ),
            discoverCell(
              title: '视频号',
              imageName: 'images/shipin.png',
              subTitle: '张三',
              subImageName: 'images/touxiang.png',
              zsImageName: 'images/aixin.png',
            ),
            Row(
              children: [
                Container(
                  width: 45,
                  height: .8,
                  color: Colors.white,
                ),
                Container(
                  height: .8,
                )
              ],
            ),
            discoverCell(
              title: '直播',
              imageName: 'images/zhibo.png',
              subTitle: '',
              subImageName: '',
              zsImageName: '',
            ),
            SizedBox(
              height: 10,
            ),
            discoverCell(
              title: '扫一扫',
              imageName: 'images/saoyosao.png',
              subTitle: '',
              subImageName: '',
              zsImageName: '',
            ),
            Row(
              children: [
                Container(
                  width: 45,
                  height: .8,
                  color: Colors.white,
                ),
                Container(
                  height: .8,
                )
              ],
            ),
            discoverCell(
              title: '摇一摇',
              imageName: 'images/yaoyiyao.png',
              subTitle: '',
              subImageName: '',
              zsImageName: '',
            ),
            SizedBox(
              height: 10,
            ),
            discoverCell(
              title: '看一看',
              imageName: 'images/kanyikan.png',
              subTitle: '',
              subImageName: '',
              zsImageName: '',
            ),
            Row(
              children: [
                Container(
                  width: 45,
                  height: .8,
                  color: Colors.white,
                ),
                Container(
                  height: .8,
                )
              ],
            ),
            discoverCell(
              title: '搜一搜',
              imageName: 'images/souyisou.png',
              subTitle: '',
              subImageName: '',
              zsImageName: '',
            ),
            SizedBox(
              height: 10,
            ),
            discoverCell(
              title: '附近',
              imageName: 'images/fujin.png',
              subTitle: '',
              subImageName: '',
              zsImageName: '',
            ),
            SizedBox(
              height: 10,
            ),
            discoverCell(
              title: '购物',
              imageName: 'images/gouwu.png',
              subTitle: '双十一限时特价',
              subImageName: '',
              zsImageName: '',
            ),
            Row(
              children: [
                Container(
                  width: 45,
                  height: .8,
                  color: Colors.white,
                ),
                Container(
                  height: .8,
                )
              ],
            ),
            discoverCell(
              title: '游戏',
              imageName: 'images/youxi.png',
              subTitle: '原神启动!',
              subImageName: 'images/原神.png',
              zsImageName: '',
            ),
            SizedBox(
              height: 10,
            ),
            discoverCell(
              title: '小程序',
              imageName: 'images/xiaochengxu.png',
              subTitle: '',
              subImageName: '',
              zsImageName: '',
            ),
          ],
        ),
      ),
    );
  }
}
